using System;

namespace AspNetForums.WebServices
{
	public enum PostError
	{
		None,
		InvalidForum,
		MissingSubject,
		MissingDescription,
		InvalidProject,
		MultipleEntries
	}

	/// <summary>
	/// Summary description for SerializablePost.
	/// </summary>
	[Serializable]
	public class SerializablePost
	{
		public SerializablePost()
		{
			//
			// TODO: Add constructor logic here
			//
		}

		public SerializablePost( Components.Post post )
		{
			this.subject = post.Subject;
			this.body = post.Body;
			this.postID = post.PostID;
			this.forumID = post.ForumID;
		}

		public PostError Error
		{
			get{return error;}
			set{error = value;}
		} private PostError error;

		public string Subject
		{
			get{return subject;}
			set{subject = value;}
		} private string subject;

		public string Body
		{
			get{return body;}
			set{body = value;}
		} private string body;

		public int ForumID
		{
			get{return forumID;}
			set{forumID = value;}
		} private int forumID;

		public int PostID
		{
			get{return postID;}
			set{postID = value;}
		} private int postID;
	}
}
